package com.example.huixue.dto;

import java.time.LocalDateTime;

public class UserInfoResponse {
    private Integer userId;
    private String username;
    private String email;
    private String phone;
    private LocalDateTime registerDate;
    private LocalDateTime lastLogin;
    private String userRole;
    private String profilePicture;
    private String token; // JWT token
    private String status; // 用户状态
    
    public UserInfoResponse() {}
    
    // 前端期望的字段别名
    public Integer getId() {
        return this.userId;
    }
    
    public void setId(Integer id) {
        this.userId = id;
    }
    
    public String getRole() {
        return this.userRole;
    }
    
    public void setRole(String role) {
        this.userRole = role;
    }
    
    public LocalDateTime getCreatedAt() {
        return this.registerDate;
    }
    
    public void setCreatedAt(LocalDateTime createdAt) {
        this.registerDate = createdAt;
    }
    
    public LocalDateTime getLastLoginAt() {
        return this.lastLogin;
    }
    
    public void setLastLoginAt(LocalDateTime lastLoginAt) {
        this.lastLogin = lastLoginAt;
    }
    
    public Integer getUserId() {
        return userId;
    }
    
    public void setUserId(Integer userId) {
        this.userId = userId;
    }
    
    public String getUsername() {
        return username;
    }
    
    public void setUsername(String username) {
        this.username = username;
    }
    
    public String getEmail() {
        return email;
    }
    
    public void setEmail(String email) {
        this.email = email;
    }
    
    public String getPhone() {
        return phone;
    }
    
    public void setPhone(String phone) {
        this.phone = phone;
    }
    
    public LocalDateTime getRegisterDate() {
        return registerDate;
    }
    
    public void setRegisterDate(LocalDateTime registerDate) {
        this.registerDate = registerDate;
    }
    
    public LocalDateTime getLastLogin() {
        return lastLogin;
    }
    
    public void setLastLogin(LocalDateTime lastLogin) {
        this.lastLogin = lastLogin;
    }
    
    public String getUserRole() {
        return userRole;
    }
    
    public void setUserRole(String userRole) {
        this.userRole = userRole;
    }
    
    public String getProfilePicture() {
        return profilePicture;
    }
    
    public void setProfilePicture(String profilePicture) {
        this.profilePicture = profilePicture;
    }
    
    public String getToken() {
        return token;
    }
    
    public void setToken(String token) {
        this.token = token;
    }
    
    public String getStatus() {
        return status;
    }
    
    public void setStatus(String status) {
        this.status = status;
    }
    
    @Override
    public String toString() {
        return "UserInfoResponse{" +
                "userId=" + userId +
                ", username='" + username + '\'' +
                ", email='" + email + '\'' +
                ", phone='" + phone + '\'' +
                ", registerDate=" + registerDate +
                ", lastLogin=" + lastLogin +
                ", userRole='" + userRole + '\'' +
                ", profilePicture='" + profilePicture + '\'' +
                ", status='" + status + '\'' +
                ", token='" + token + '\'' +
                '}';
    }
} 